agents
Class RandomIncreasingUtilAgent

java.lang.Object
  extended by negotiator.Agent
      extended by agents.RandomIncreasingUtilAgent

public class RandomIncreasingUtilAgent
extends Agent

Author:
W.Pasman 6nov08 Some improvements over the standard SimpleAgent. We only consider random bids with utility higher than the maximum and we search at most MAX_SEARCH times in the random space for a better bid. of the opponent utilities we saw so far.

Field Summary
 
Fields inherited from class negotiator.Agent
fNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace
 
Constructor Summary
RandomIncreasingUtilAgent()
           
 
Method Summary
 Action chooseAction()
          this function is called after ReceiveMessage, with an Offer-action.
static java.lang.String getVersion()
           
 void init()
          init is called when a next session starts with the same opponent.
 void ReceiveMessage(Action opponentAction)
          informs you which action the opponent did
 
Methods inherited from class negotiator.Agent
endSession, getAgentID, getName, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getUniqueIdentifier, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleep
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomIncreasingUtilAgent

public RandomIncreasingUtilAgent()
Method Detail

init

public void init()
init is called when a next session starts with the same opponent.

Overrides:
init in class Agent

getVersion

public static java.lang.String getVersion()

ReceiveMessage

public void ReceiveMessage(Action opponentAction)
Description copied from class: Agent
informs you which action the opponent did

Overrides:
ReceiveMessage in class Agent

chooseAction

public Action chooseAction()
Description copied from class: Agent
this function is called after ReceiveMessage, with an Offer-action.

Specified by:
chooseAction in class Agent
Returns:
(should return) the bid-action the agent wants to make.